<?
/**
 * @author Fernando Palomo Garcia fernando@kernelius.com
 */



// Fernando Palomo Garcia
// fernando@kernelius.com
//
// cache example
ini_set("error_reporting",E_ALL);

include "../lib/Kernelius/Logger.php";
include "../lib/Kernelius/Session.php";
include "../lib/Kernelius/Cache.php";
include "../lib/Kernelius/Cache/MemcacheCluster.php";
include "../lib/Kernelius/Cache/Persistent.php";
include "../lib/Kernelius/Cache/Storage.php";
include "../lib/Kernelius/Cache/Persistent/Filesystem.php";
include "../lib/Kernelius/Cache/Persistent/Mysql.php";

$session= new Kernelius_Session();
$session->setSaveHandler();



session_start();
echo session_id();
$last=isset($_SESSION["last_access"])?$_SESSION["last_access"]:"";
echo "last access:".$last."<br>";
echo "actual time:".time()."<br>";
$_SESSION["last_access"]=time();

//session_destroy();


$session->gc(0);
